package net.zhnb.service.impl;

import java.math.BigDecimal;

import javax.annotation.Resource;

import net.zhnb.bean.Shower;
import net.zhnb.bean.ShowerKey;
import net.zhnb.dao.ShowerDao;
import net.zhnb.service.ShowerService;
import finaler.util.Page;
import finaler.util.PageList;

public class ShowerServiceImpl implements ShowerService {

	@Resource
	private ShowerDao showerDao;

	@Override
	public PageList getPageList(Page page) throws Exception {
		return showerDao.getPageList(page);
	}

	@Override
	public boolean insert(Shower shower) throws Exception {
		return showerDao.insert(shower);
	}

	@Override
	public boolean deleteByKey(ShowerKey key) throws Exception {
		return showerDao.deleteByKey(key);
	}

	@Override
	public Shower findByKey(ShowerKey key) throws Exception {
		return showerDao.findByKey(key);
	}

	@Override
	public boolean update(Shower shower) throws Exception {
		return showerDao.update(shower);
	}

	@Override
	public boolean deleteByRoomId(BigDecimal roomId) throws Exception {
		return showerDao.deleteByRoomId(roomId);
	}

	@Override
	public Shower findShower(String tagId) throws Exception {
		return showerDao.findShower(tagId);
	}
	
}
